package appapi.Vo;

import appapi.entity.basic.EquipmenttypeEntity;
import appapi.entity.basic.SysConfigEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/05/27 16:59
 */
@ApiModel
@Data
public class EditEquipTypeVo {

    /**
     * 类别ID
     */
    private Long equipTypeId;

    /**
     * 类别名称
     */
    private String equipTypeName;

    /**
     * 状态 0 正常 1 停用
     */
    private Integer isEnable;

    /**
     * 备注说明
     */
    private String equipTypeNote;

    /**
     * 代码
     */
    private String equipTypeCode;

    /**
     * 使用年限
     */
    private Integer equipTypeOverage;

    public EquipmenttypeEntity vo2Entity(){
        EquipmenttypeEntity entity = new EquipmenttypeEntity();
        BeanUtils.copyProperties(this,entity);
        return entity;
    }
}
